速報APP / 教育 / NN provider

NN provider

價格:免費

更新日期:2013-02-20

檔案大小:208k

目前版本:1.0

版本需求:Android 2.1 以上版本

官方網站:http://www.ugr.es/~amaro/android

Email:amarougr@gmail.com

NN provider(圖1)-速報App

Nucleon-nucleon offline database. Low energy experimental data.

J.E. Amaro, R. Navarro-Perez, and E. Ruiz-Arriola

/ Instituto Carlos I de Fisica Teorica y Computacional, and

Departamento de Fisica Atomica, Molecular y Nuclear.

Universidad de Granada, Spain. /

Build database

Only the first time you run this app or in the case of an update.

Search database and write data into file

Choose the channel, observable, and energy range. Click start. Check the

box if you wish to write the results in a file located in the

/nnprovider/ folder of your SD-card.

Output format

The user of this app can choose different options for showing the output

data

Separate data

Separate data can be ordered by energy or by group of data. Each datum

is stored in a single line in the provided output file. The meaning of

the columns is the following:

channel,nlink,observable,energy,angle,value,error,omega,normalization,key,star.

Group data. Order by energy

Separate data in groups ordered by energy and observable. The data

within a group differ in angle only. The heading of each group provides

the following information:

energy, number of data in the group, normalization error, zero, zero,

zero, channel, observable, key

Each datum within the group consist in:

angle, value, error, omega.

Group data. Order by group

Separate data in groups ordered by experiment. The heading of each group

spreads over several lines with the following information:

link to nn-online.org, reference, channel, number of data, normalization

error, plus several lines of additional information.

Each datum within the group is shown in a separate line with the

following information:

Energy, angle, observable, value, error, omega

Include star (*) data

If checked, the data marked with a star(*) in the nn-online database are

displayed. Otherwise they are ignored.

Include excluded data

If checked, the data excluded from the restricted database are

NN provider(圖2)-速報App

displayed. Otherwise they are ignored.

Android content provider

NNprovider is also a database that you can use as a content provider for

your smartphone or tablet. A content provider is a data base shared

within your Android device. If you have programming skills you can write

an Android app for searching this database, using the following URI:

|

Uri uri= Uri.parse("content://es.ugr.amaro.nnprovider/tabla");

|

To performing a search within the content provide you use:

|

Cursor cursor=getContentResolver().query(uri, projection, selection, selectionArgs, sortOrder);

|

This cursor is a Java object containing the data as follows:

|

String id =cursor.getString(0);

String channel =cursor.getString(1);

String observable =cursor.getString(2);

String normalization=cursor.getString(3);

float energy =cursor.getFloat(4);

String angle =cursor.getString(5);

String omega =cursor.getString(6);

String value =cursor.getString(7);

String error =cursor.getString(8);

String key= cursor.getString(9);

String reference =cursor.getString(10);

String star =cursor.getString(11);

String url =cursor.getString(12);

String relative =cursor.getString(13);

String more =cursor.getString(14);

String excluded =cursor.getString(15);

String absolute =cursor.getString(16);

String ndatos =cursor.getString(17);

String nlink =cursor.getString(18);

|

Info

Work supported by Spanish DGI (grant FIS2011-24149) and by Junta de

Andalucia (grant FQM225).

Rodrigo Navarro is supported by a Mexican CONACYT grant.

J.E. Amaro is the author of two

NN provider(圖3)-速報App

books on Android programming (in Spanish) and teach several Android

courses at the Granada University.